home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Sprite 1984 - 1993
/
Sprite 1984 - 1993.iso
/
src
/
kernel
/
net
/
netEther.c
< prev
next >
Wrap
C/C++ Source or Header
|
1992-12-18
|
1KB
|
55 lines
/*
* netEther.c --
*
* Contains ethernet specific definitions.
*
* Copyright 1990 Regents of the University of California
* Permission to use, copy, modify, and distribute this
* software and its documentation for any purpose and without
* fee is hereby granted, provided that the above copyright
* notice appear in all copies. The University of California
* makes no representations about the suitability of this
* software for any purpose. It is provided "as is" without
* express or implied warranty.
*/
#ifndef lint
static char rcsid[] = "$Header: /cdrom/src/kernel/Cvsroot/kernel/net/netEther.c,v 1.3 92/06/03 22:47:54 voelker Exp $ SPRITE (Berkeley)";
#endif /* not lint */
#include <netInt.h>
Net_Address netEtherBroadcastAddress;
/*
*----------------------------------------------------------------------
*
* NetEtherInit --
*
* Initializes stuff for the ethernet.
*
* Results:
* None.
*
* Side effects:
* None.
*
*----------------------------------------------------------------------
*/
void
NetEtherInit()
{
static Net_EtherAddress tmp = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
ReturnStatus status;
status = Net_SetAddress(NET_ADDRESS_ETHER, (Address) &tmp,
&netEtherBroadcastAddress);
if (status != SUCCESS) {
panic("NetEtherInit: Net_SetAddress failed\n");
}
}